package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MaintenanceFixerMapper;
import com.ruoyi.system.domain.MaintenanceFixer;
import com.ruoyi.system.service.IMaintenanceFixerService;
import com.ruoyi.common.core.text.Convert;

/**
 * 维修工信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
@Service
public class MaintenanceFixerServiceImpl implements IMaintenanceFixerService 
{
    @Autowired
    private MaintenanceFixerMapper maintenanceFixerMapper;

    /**
     * 查询维修工信息
     * 
     * @param workerId 维修工信息主键
     * @return 维修工信息
     */
    @Override
    public MaintenanceFixer selectMaintenanceFixerByWorkerId(Long workerId)
    {
        return maintenanceFixerMapper.selectMaintenanceFixerByWorkerId(workerId);
    }

    /**
     * 查询维修工信息列表
     * 
     * @param maintenanceFixer 维修工信息
     * @return 维修工信息
     */
    @Override
    public List<MaintenanceFixer> selectMaintenanceFixerList(MaintenanceFixer maintenanceFixer)
    {
        return maintenanceFixerMapper.selectMaintenanceFixerList(maintenanceFixer);
    }

    /**
     * 新增维修工信息
     * 
     * @param maintenanceFixer 维修工信息
     * @return 结果
     */
    @Override
    public int insertMaintenanceFixer(MaintenanceFixer maintenanceFixer)
    {
        return maintenanceFixerMapper.insertMaintenanceFixer(maintenanceFixer);
    }

    /**
     * 修改维修工信息
     * 
     * @param maintenanceFixer 维修工信息
     * @return 结果
     */
    @Override
    public int updateMaintenanceFixer(MaintenanceFixer maintenanceFixer)
    {
        return maintenanceFixerMapper.updateMaintenanceFixer(maintenanceFixer);
    }

    /**
     * 批量删除维修工信息
     * 
     * @param workerIds 需要删除的维修工信息主键
     * @return 结果
     */
    @Override
    public int deleteMaintenanceFixerByWorkerIds(String workerIds)
    {
        return maintenanceFixerMapper.deleteMaintenanceFixerByWorkerIds(Convert.toStrArray(workerIds));
    }

    /**
     * 删除维修工信息信息
     * 
     * @param workerId 维修工信息主键
     * @return 结果
     */
    @Override
    public int deleteMaintenanceFixerByWorkerId(Long workerId)
    {
        return maintenanceFixerMapper.deleteMaintenanceFixerByWorkerId(workerId);
    }
}
